import { axios } from '@/utils/request'

const api = {
  addAntPermission: '/antPermission/json/doCreate',
  getAntPermissions: '/antPermission/json/list',
  delAntPermission: '/antPermission/json/doDelete'
}

export default api

export function addAntPermission (parameter) {
  return axios({
    url: api.addAntPermission,
    method: 'post',
    data: parameter
  })
}

export function getAntPermissions (parameter) {
  return axios({
    url: api.getAntPermissions,
    method: 'post',
    data: parameter
  })
}

export function delAntPermission (parameter) {
  return axios({
    url: api.delAntPermission,
    method: 'post',
    data: parameter
  })
}
